package com.example.ssmHomework1.entity;

public class Student<T> {
    private String name;
    private String number;
    private T obj;

    public Student() {
    }

    public Student(String name, String number, T obj) {
        this.name = name;
        this.number = number;
        this.obj = obj;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Student{");
        sb.append("name='").append(name).append('\'');
        sb.append(", address=").append(obj);
        sb.append('}');
        return sb.toString();
    }
    public void show() {
        System.out.println(name + "====" + number+"===="+obj);

    }


}






